
import { Injectable } from '@angular/core';
import { FormControl } from '@angular/forms';
import { Form, NgFormControl, NgChildForm, NgChildFormArray, NgValidateForm } from '@farris/devkit';
import { DateConverter, MultiLangConverter } from '@farris/kendo-binding';

@Injectable()
@NgValidateForm({
    formGroupName: '住宿明细',
    enableValidate: true
})

@Injectable()
export class Newobject2Xgn6ComponentViewmodelForm extends Form {
    @NgFormControl({
        id: 'zsbh',
        name: "{{zsbh_a2b6fe39_6e7x}}",
        binding: 'zsbh',
        updateOn: 'blur',
        defaultI18nValue: '住宿编号',
        validRules: [
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    zsbh: FormControl;

    @NgFormControl({
        id: 'note2',
        name: "{{note2_5c227d8f_fb5g}}",
        binding: 'note2',
        updateOn: 'blur',
        defaultI18nValue: '住宿相关备注',
        validRules: [
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    note2: FormControl;

    @NgFormControl({
        id: 'cjr2',
        name: "{{cjr2_cd5dffd9_k5cq}}",
        binding: 'cjr2',
        updateOn: 'blur',
        defaultI18nValue: '创建人',
        validRules: [
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    cjr2: FormControl;

    @NgFormControl({
        id: 'cjsj',
        name: "{{cjsj_3685c6c0_geuh}}",
        binding: 'cjsj',
        updateOn: 'blur',
        defaultI18nValue: '创建时间',
        validRules: [
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    cjsj: FormControl;

    @NgFormControl({
        id: 'kssj2',
        name: "{{kssj2_fd32f159_d6me}}",
        binding: 'kssj2',
        updateOn: 'blur',
        valueConverter: new DateConverter('yyyy-MM-dd'),
        defaultI18nValue: '开始日期',
    })
    kssj2: FormControl;

    @NgFormControl({
        id: 'jsrq2',
        name: "{{jsrq2_b23d5af3_v5o6}}",
        binding: 'jsrq2',
        updateOn: 'blur',
        defaultI18nValue: '结束日期',
        validRules: [
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    jsrq2: FormControl;

    @NgFormControl({
        id: 'zsje',
        name: "{{zsje_4a39e50c_4wua}}",
        binding: 'zsje',
        updateOn: 'blur',
        defaultI18nValue: '住宿总费用',
        validRules: [
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    zsje: FormControl;

    @NgFormControl({
        id: 'zsts',
        name: "{{zsts_3657f4e0_z7yv}}",
        binding: 'zsts',
        updateOn: 'blur',
        defaultI18nValue: '住宿天数',
        validRules: [
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    zsts: FormControl;

    @NgFormControl({
        id: 'zsdj',
        name: "{{zsdj_90bd1927_5jjr}}",
        binding: 'zsdj',
        updateOn: 'blur',
        defaultI18nValue: '住宿单价',
        validRules: [
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    zsdj: FormControl;

    @NgFormControl({
        id: 'sfybt2',
        name: "{{sfybt2_e60cd55d_i96e}}",
        binding: 'sfybt2',
        updateOn: 'blur',
        defaultI18nValue: '是否有补贴',
        validRules: [
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    sfybt2: FormControl;

    @NgFormControl({
        id: 'btje2',
        name: "{{btje2_e4cc080f_88if}}",
        binding: 'btje2',
        updateOn: 'blur',
        defaultI18nValue: '补贴金额',
        validRules: [
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    btje2: FormControl;

}